@extends('layouts.auth')

@push('morescript')
    <script type="application/javascript">
        function go() {
            //window.history.go(-1);
            window.location.href = '{{ url()->previous() }}';
        }
        setTimeout("go()", 5000);
    </script>
@endpush

@section('content')
    <div class="middle-box text-center animated fadeInDown">
        <h1>@yield('code')</h1>
        <h3 class="font-bold">@yield('title')</h3>

        <div class="error-desc">
            <h2>@yield('message')</h2><br>
            <a href="{{ url()->previous() }}" class="btn btn-primary m-t">上一页</a>
            <a href="{{ route('admin.index.index') }}" class="btn btn-primary m-t">主页</a>
        </div>
    </div>
@endsection